<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Kafka 应用场景全景图</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        /* 首字下沉效果 */
        .drop-cap::first-letter {
            float: left;
            font-size: 4.5rem;
            line-height: 3.5rem;
            padding-right: 0.5rem;
            margin-top: 0.25rem;
            font-weight: 700;
            color: #4338ca;
            font-family: 'Noto Serif SC', serif;
        }
        
        /* 卡片悬停效果 */
        .feature-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
        }
        
        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }
        
        /* 渐变文字效果 */
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* 数字标记样式 */
        .number-badge {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            width: 2rem;
            height: 2rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            font-weight: 700;
            margin-right: 0.75rem;
            flex-shrink: 0;
        }
        
        /* 图片容器样式 */
        .image-container {
            position: relative;
            overflow: hidden;
            border-radius: 1rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .image-container img {
            transition: transform 0.3s ease;
        }
        
        .image-container:hover img {
            transform: scale(1.05);
        }
        
        /* 章节标题装饰 */
        .section-title {
            position: relative;
            padding-left: 1.5rem;
        }
        
        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 4px;
            height: 2rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 2px;
        }
        
        /* Mermaid 图表样式 */
        .mermaid {
            background: rgba(255, 255, 255, 0.9);
            padding: 2rem;
            border-radius: 1rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        /* 滚动动画 */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            animation: fadeIn 0.8s ease forwards;
        }
        
        @keyframes fadeIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        /* 延迟动画 */
        .delay-1 { animation-delay: 0.1s; }
        .delay-2 { animation-delay: 0.2s; }
        .delay-3 { animation-delay: 0.3s; }
        .delay-4 { animation-delay: 0.4s; }
        .delay-5 { animation-delay: 0.5s; }
        .delay-6 { animation-delay: 0.6s; }
    </style>
</head>
<body>
    <!-- Hero 区域 -->
    <section class="relative overflow-hidden bg-gradient-to-br from-indigo-600 via-purple-600 to-pink-500 text-white">
        <div class="absolute inset-0 bg-black opacity-20"></div>
        <div class="relative container mx-auto px-6 py-24 text-center">
            <h1 class="text-5xl md:text-7xl font-bold mb-6 fade-in">
                <i class="fas fa-stream mr-4"></i>Apache Kafka
            </h1>
            <p class="text-2xl md:text-3xl mb-8 fade-in delay-1">高性能分布式消息队列系统的应用全景</p>
            <p class="text-lg md:text-xl max-w-3xl mx-auto leading-relaxed fade-in delay-2">
                探索 Kafka 在现代架构中的核心地位，从日志收集到实时数据处理，从事件驱动到微服务通信，深入了解这个改变数据处理方式的强大工具。
            </p>
        </div>
        <div class="absolute bottom-0 left-0 right-0">
            <svg viewBox="0 0 1440 120" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M0 120L60 110C120 100 240 80 360 70C480 60 600 60 720 65C840 70 960 80 1080 85C1200 90 1320 90 1380 90L1440 90V120H1380C1320 120 1200 120 1080 120C960 120 840 120 720 120C600 120 480 120 360 120C240 120 120 120 60 120H0V120Z" fill="white" fill-opacity="0.1"/>
                <path d="M0 120L60 105C120 90 240 60 360 45C480 30 600 30 720 40C840 50 960 70 1080 80C1200 90 1320 90 1380 90L1440 90V120H1380C1320 120 1200 120 1080 120C960 120 840 120 720 120C600 120 480 120 360 120C240 120 120 120 60 120H0V120Z" fill="white" fill-opacity="0.2"/>
                <path d="M0 120L60 95C120 70 240 20 360 10C480 0 600 30 720 45C840 60 960 60 1080 60C1200 60 1320 60 1380 60L1440 60V120H1380C1320 120 1200 120 1080 120C960 120 840 120 720 120C600 120 480 120 360 120C240 120 120 120 60 120H0V120Z" fill="#f5f7fa"/>
            </svg>
        </div>
    </section>

    <!-- 主要内容区域 -->
    <main class="container mx-auto px-6 py-16">
        <!-- 引言部分 -->
        <section class="max-w-4xl mx-auto mb-20 fade-in delay-3">
            <div class="bg-white rounded-2xl shadow-xl p-10">
                <p class="text-lg leading-relaxed text-gray-700 drop-cap">
                    Kafka 是一个高性能、分布式的消息队列系统。Kafka 的应用场景非常广泛，适用于日志收集与处理、事件驱动架构、流式数据处理、消息队列中间件、实时数据管道、日志和监控等多个领域。Kafka 的高性能、高可靠性、水平扩展性和灵活性使得它成为了许多大型企业和互联网公司的核心基础设施之一。
                </p>
            </div>
        </section>

        <!-- 核心概念可视化 -->
        <section class="mb-20 fade-in delay-4">
            <h2 class="text-3xl font-bold text-center mb-12 gradient-text">Kafka 生态系统架构</h2>
            <div class="mermaid">
                graph TB
                    subgraph "数据源"
                        A1[应用日志]
                        A2[系统监控]
                        A3[用户行为]
                        A4[IoT设备]
                    end
                    
                    subgraph "Kafka 集群"
                        B[Kafka Broker]
                        B1[Topic 1]
                        B2[Topic 2]
                        B3[Topic N]
                    end
                    
                    subgraph "数据消费"
                        C1[实时分析]
                        C2[数据仓库]
                        C3[监控系统]
                        C4[微服务]
                    end
                    
                    A1 --> B
                    A2 --> B
                    A3 --> B
                    A4 --> B
                    
                    B --> B1
                    B --> B2
                    B --> B3
                    
                    B1 --> C1
                    B2 --> C2
                    B3 --> C3
                    B1 --> C4
                    
                    style B fill:#667eea,stroke:#764ba2,stroke-width:3px,color:#fff
                    style B1 fill:#f59e0b,stroke:#d97706,stroke-width:2px,color:#fff
                    style B2 fill:#f59e0b,stroke:#d97706,stroke-width:2px,color:#fff
                    style B3 fill:#f59e0b,stroke:#d97706,stroke-width:2px,color:#fff
            </div>
        </section>

        <!-- 应用场景网格 -->
        <section class="mb-20">
            <h2 class="text-4xl font-bold text-center mb-4 gradient-text">六大核心应用场景</h2>
            <p class="text-center text-gray-600 mb-12 text-lg">探索 Kafka 如何革新现代数据架构</p>
            
            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                <!-- 场景卡片 1 -->
                <div class="feature-card rounded-2xl p-8 shadow-lg fade-in delay-1">
                    <div class="flex items-center mb-4">
                        <div class="w-16 h-16 bg-gradient-to-br from-blue-500 to-blue-600 rounded-full flex items-center justify-center text-white text-2xl mr-4">
                            <i class="fas fa-file-alt"></i>
                        </div>
                        <h3 class="text-2xl font-bold">日志收集与处理</h3>
                    </div>
                    <p class="text-gray-600 mb-4">集中管理分布式系统的海量日志数据，实现实时收集、传输和分析。</p>
                    <div class="flex items-center text-blue-600">
                        <i class="fas fa-arrow-right mr-2"></i>
                        <span class="font-semibold">了解详情</span>
                    </div>
                </div>

                <!-- 场景卡片 2 -->
                <div class="feature-card rounded-2xl p-8 shadow-lg fade-in delay-2">
                    <div class="flex items-center mb-4">
                        <div class="w-16 h-16 bg-gradient-to-br from-purple-500 to-purple-600 rounded-full flex items-center justify-center text-white text-2xl mr-4">
                            <i class="fas fa-bolt"></i>
                        </div>
                        <h3 class="text-2xl font-bold">事件驱动架构</h3>
                    </div>
                    <p class="text-gray-600 mb-4">构建响应式微服务系统，实现服务间的异步通信和事件溯源。</p>
                    <div class="flex items-center text-purple-600">
                        <i class="fas fa-arrow-right mr-2"></i>
                        <span class="font-semibold">了解详情</span>
                    </div>
                </div>

                <!-- 场景卡片 3 -->
                <div class="feature-card rounded-2xl p-8 shadow-lg fade-in delay-3">
                    <div class="flex items-center mb-4">
                        <div class="w-16 h-16 bg-gradient-to-br from-green-500 to-green-600 rounded-full flex items-center justify-center text-white text-2xl mr-4">
                            <i class="fas fa-water"></i>
                        </div>
                        <h3 class="text-2xl font-bold">流式数据处理</h3>
                    </div>
                    <p class="text-gray-600 mb-4">处理实时数据流，支持复杂的流计算和实时分析场景。</p>
                    <div class="flex items-center text-green-600">
                        <i class="fas fa-arrow-right mr-2"></i>
                        <span class="font-semibold">了解详情</span>
                    </div>
                </div>

                <!-- 场景卡片 4 -->
                <div class="feature-card rounded-2xl p-8 shadow-lg fade-in delay-4">
                    <div class="flex items-center mb-4">
                        <div class="w-16 h-16 bg-gradient-to-br from-red-500 to-red-600 rounded-full flex items-center justify-center text-white text-2xl mr-4">
                            <i class="fas fa-exchange